<template>
  <view class="moment-section card">
    <view class="section-header">
      <view class="section-title">活动时刻</view>
      <view class="section-subtitle">分享美好瞬间</view>
      <view class="camera-icon">
        <text class="camera-emoji">📷</text>
      </view>
    </view>
    <view class="moment-list">
      <view class="moment-item" v-for="(item, index) in momentImages" :key="index">
        <view class="moment-image" :style="{ backgroundColor: item.bgColor }">
          <text class="moment-text">{{ item.name }}</text>
        </view>
      </view>
    </view>
  </view>
</template>

<script setup>
import { useLoadList } from "/common/data"

// 活动时刻组件逻辑

const { listData: momentImages } = useLoadList("topic_catalog_list", {})

</script>

<style scoped>
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 16px;
}

.moment-section {
  margin: 15px 10px;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.section-subtitle {
  font-size: 11px;
  color: #999;
  margin-left: 10px;
  flex: 1;
}

.camera-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-emoji {
  font-size: 24px;
}

.moment-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.moment-item {
  flex-shrink: 0;
}

.moment-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moment-text {
  font-size: 24px;
}
</style>
